package com.mew.sas;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
@EnableScheduling
@ComponentScan( {"com.mew.sas", "com.mew.common.config", "com.mew.common.dc"})
@MapperScan("com.mew.common.dc.mapper")
@Slf4j
public class SasApplication {
    public static void main(String[] args) {
        try{
            SpringApplication.run(SasApplication.class, args);
        }catch (Exception e){
            log.error("Start sas server error", e);
        }
    }
}
